import { createRouter, createWebHistory } from 'vue-router'
import AppLayout from "@/components/Third/layout/AppLayout.vue";
import IndexView from "@/views/Third/IndexView.vue";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'Home',
      component: () => import('@/views/Home/HomeView.vue'),
    },
    {
      path: '/ZhanShi',
      name: 'ZS',
      component: () => import("@/views/Home/ZhanShiView.vue")
    },
    {
      path: '/login',
      name: 'Login',
      component: () => import("@/components/User/Login.vue")
    },
    {
      path: '/register',
      name: 'Register',
      component: () => import("@/components/User/Register.vue")
    },
    //  主页
    {
      path:'/hpage',
      name:'HPage',
      component:()=>import("@/views/Second/HPage.vue"),
    },
  //  学费管理
  {
    path:'/tuitionrecords',
    name:'TuitionRecords',
    component:()=>import("@/views/Second/TuitionRecords.vue")
  },
    //  学费提交
    {
      path:'/tuitionsubmit',
      name:'TuitionSubmit',
      component:()=>import("@/views/Second/TuitionSubmit.vue")
    },
  //  学籍档案管理
  {
    path:'/file',
    name:'File',
    component:()=>import("@/views/Second/FileManage.vue")
  },
    {
      path:'/study',
      name:'Study',
      component:()=>import("@/views/Second/Study.vue")
    },
    {
      path:'/course',
      name:'Course',
      component:()=>import("@/views/Second/Course.vue")
    },
    {
      path:'/student',
      name:'Student',
      component:()=>import("@/views/Second/Student.vue")
    },
    // 人脸识别
    {
      path: '/FaceRecognition',
      name: 'FaceRecognition',
      component:()=>import("@/views/Second/FaceRecognition.vue")
    },
    {
      path:'/echarts',
      name:'Echarts',
      component:()=>import("@/views/Second/Echarts.vue")
    },

    //资源管理系统
    {
      path:'/ResourcePage',
      name:'ResourcePage',
      component:()=>import("@/views/Forth/ResourcePage.vue"),
    },
    {
      path:"/Library",
      name:"Library",
      component:() =>import("@/views/Forth/Library.vue"),
    },{
      path:"/Laboratory",
      name:"Laboratory",
      component:() =>import("@/views/Forth/Laboratory.vue"),
    },

    //     毕业生系统
    {
      path:'/',
      name:'AppLayout',
      component: AppLayout,
      // 设置默认页面
      children:[{
        path:"",
        name:'IndexView',
        component:IndexView,
      },
        {
          path:"shouye",
          name:"shouye",
          component:() =>import("@/views/Third/menu/shouye.vue"),
        },
        {
          path:"xuesheng",
          name:"xuesheng",
          component:() =>import("@/views/Third/menu/xuesheng.vue")
        },
        {
          path:"CUxs",
          name:"CUxs",
          component:() =>import("@/views/Third/creat or up/CUxs.vue")
        },
        {
          path:"xingzitongjiguanli",
          name:"xingzitongjiguanli",
          component:() =>import("@/views/Third/menu/xingzitongjiguanli.vue")
        }
      ]
    },

    // 第六组：校园安全管理系统
    {
      path:'/AlertView',
      name:'AlertView',
      component:()=>import("@/views/Sixth/AlertView.vue"),
    },
    {
      path:'/AlertView/VerifyView',
      name:'VerifyView',
      component:()=>import("@/views/Sixth/VerifyView.vue")
    },
    {
      path:'/MonitoringView',
      name:'MonitoringView',
      component:()=>import("@/views/Sixth/MonitoringView.vue")
    },
    {
      path:'/MonitoringView/FilingView',
      name:'FilingView',
      component:()=>import("@/views/Sixth/FilingView.vue")
    },

  ]
})


export default router
